﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DAL;
using Model;
using System.Data.SqlClient;

namespace BLL
{
    /// <summary>
    /// 部门表
    /// </summary>
    public class DepartmentBll
    {
        DepartmentDal dal = new DepartmentDal();

        /// <summary>
        /// 获取部门表中的值 绑定下垃框
        /// </summary>
        /// <param name="UsersName"></param>
        /// <param name="UsersPwd"></param>
        /// <returns></returns>
        public List<SysDepartment> DepartmentBD()
        {
            return dal.DepartmentBD();
        }

           /// <summary>
        /// 显示
        /// </summary>
        /// <returns>List集合</returns>
        public List<Model.SysDepartment> Show(params SqlParameter[] paramters)
        {
            return dal.Show(paramters);
        }
        /// <summary>
        /// 状态变更
        /// </summary>
        /// <param name="State"></param>
        /// <param name="department_Id"></param>
        /// <returns></returns>
        public string Stop(int State, int department_Id)
        {
            return dal.Stop(State, department_Id);
        }
        public bool AddDep(SysDepartment de)
        {
            return dal.Add(de);
        }
    }
}
